package com.dragon.modules.yuegou.service.product;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.common.web.PageRequest;
import com.dragon.modules.yuegou.entity.product.SeckillEntity;
import com.dragon.modules.yuegou.model.order.Order;
import com.dragon.modules.yuegou.model.product.SecKillDayVO;
import com.dragon.modules.yuegou.model.product.Seckill;
import com.dragon.modules.yuegou.query.product.SeckillQuery;

import java.time.LocalDate;
import java.util.List;

/**
 * 秒杀活动信息表 服务接口
 *
 * @author pbuilder generated
 * @date 2019-09-23 20:25:10
 * @version 2.0
 */
public interface SeckillService extends IService<SeckillEntity> {

	List<SecKillDayVO> dayList(String busdId);

	IPage<Seckill> seckillList(PageRequest page, String busdId, LocalDate date, Integer status);

	Seckill seckillDetail(String seckillId);

	Order seckillOrder(String seckillId);

	Order syncSeckillOrder(String seckillId,String spuId, String memberId);

	void saveSeckill(Seckill seckill);

	IPage<Seckill> search(PageRequest page, SeckillQuery query);

	Seckill seckillInfo(String seckillId);

	Seckill posters(String seckillId);
}